﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace params_P18_10 {
    internal class Program {
        static void Main(string[] args) {
            //匿名调用
            PrintInfo("zhangsan", 12);
            //具名调用
            PrintInfo(name:"lisi", age:20);
            Console.ReadLine();
        }

        static void PrintInfo(string name, int age) { 
            Console.WriteLine(name + " " + age);
        }
    }
}
